﻿using com.guojin.core.io.message;
using com.guojin.core.io;
using UnityEngine;
using System;

namespace com.guojin.mj.net.message.login
{
    public class CreateAlliance : Message
    {
        public static int TYPE = 7;
        public static int ID = 109;

        /**头像*/
        private string headaddress;
        /**昵称**/
        private string lmname;

        public static CreateAlliance Create(string h,string l) {
            CreateAlliance ca = new login.CreateAlliance();
            ca.headaddress = h;
            ca.lmname = l;
            return ca;
        }
        public string Lmname
        {
            get
            {
                return lmname;
            }

            set
            {
                lmname = value;
            }
        }

        public void decode(core.io.Input _in)
        {
            
        }

        public void encode(Output _out)
        {
            _out.writeString(headaddress);
            _out.writeString(lmname);
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "headaddress" + headaddress + "lmname" + lmname;
        }
    }
}
